
import { _decorator, Component, Node, EventTouch } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('StopPropagation')
export class StopPropagation extends Component {

    start() {
        this.node.on(Node.EventType.TOUCH_START, this.onMaskMouseDown, this)
    }
    private onMaskMouseDown(e: EventTouch) {
        e.propagationStopped = true;
        e.propagationImmediateStopped = true;
    }
}
